package com.shen.GOF.proxy.moveProxy;

public class Client {
    public static void main(String[] args) {
        Host host = new Host();//真实角色

        //通过调用程序处理角色来处理我们要调用的接口对象
        ProxyInvo proxyInvo = new ProxyInvo();
        proxyInvo.setRent(host);
        Rent proxy = (Rent) proxyInvo.getProxy();
        proxy.rent();
    }
}
